s = "0000123456789.99"

function solution(s) {
    // write code here
    while (s.length) {
        s.slice(1, -1);
        if (s[0] !== '0') {
            break
        }
    }
    const len = s.length
    return s
    // for(let i = len-1;i>=0;i--){

    // }
}

console.log(solution(s));